<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>系统对话框</title>
</head>
<body>
    <button id="btn1">打开窗口</button>
</body>
<script type="text/javascript">
    document.getElementById("btn1").onclick = function() {
        // 打开空白页面
        // window.open();
        // 打开指定页面,在当前页面
        window.open("hello.html","_self");
    }
</script>
</html>